package demo01;

public class counter {
	public  boolean flag;
	public  int count;
	public  final Object lock=new Object();
	public counter() {
		this(false,20);
	}
	public counter(boolean flag, int count) {
		super();
		this.flag = flag;
		this.count = count;
	}
	public boolean isFlag() {
		return flag;
	}
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Object getLock() {
		return lock;
	}

}
